﻿using System;
using System.Threading.Tasks;

namespace PhotoKiosk.ViewModel
{
    public class ProcessingViewModel : ViewModelBase
    {
        private MainWindowViewModel m_mainWindowViewModel;

        public ProcessingViewModel(MainWindowViewModel i_mainWindowViewModel, Action i_WhileProcess, string i_TextMessage = null)
        {
            m_mainWindowViewModel = i_mainWindowViewModel;
            m_text = i_TextMessage;
            Task.Factory.StartNew(() => i_WhileProcess());
        }

        private string m_text;
        public string Text
        {
            get 
            {
                return m_text;
            }
        }
    }
}